package com.shi.vueblog.utils;

import com.shi.vueblog.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtil {

    public static AccountProfile getProfile() {

        AccountProfile principal = (AccountProfile) SecurityUtils.getSubject().getPrincipal();
        return principal;
    }

}
